﻿// See https://aka.ms/new-console-template for more information

using linkedlist;

namespace linkedlist      /* 新的程序中创建了新的命名空间“Hello” */
{
    class Program            /* 创建了类（class）“Program” */
    {
        static void Main(String[] args)
        {
            GenericList<int> intlist = new GenericList<int>();
            for (int i = 0; i < 10; i++)
            {
                intlist.Add(i);
            }
            
            intlist.Foreach((i => Console.WriteLine(i)));
    
            GenericList<string> stirnglist = new GenericList<string>();
            for (int i = 0; i < 10; i++)
            {
                stirnglist.Add("Str"+ i);
            }

            stirnglist.Foreach((i => Console.WriteLine(i)));
        }
    }
}


